import useUserStore from "@/stores/user";

export default defineNuxtRouteMiddleware((to, from) => {
    if (!useUserStore().isLogin) {
        useUserStore().logout();
        return navigateTo("/login");
    }
});
